package com.fansl.allround.upms.api.feign.fallback;

import com.fansl.allround.upms.api.entity.SysRegion;
import com.fansl.allround.upms.api.feign.RemoteRegionService;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author fansl
 * @Description: RemoteRegionServiceFallbackImpl
 * @date 2020/1/15 15:19
 */
@Slf4j
@Component
public class RemoteRegionServiceFallbackImpl implements RemoteRegionService {
    @Setter
    private Throwable cause;

    /**
     * 批量新增
     *
     * @param sysRegions
     * @return
     */
    @Override
    public Boolean saveBatch(List<SysRegion> sysRegions,String from) {
        log.error("feign 批量新增",cause);
        return null;
    }
}
